<!doctype html>
<html lang="`en`">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>

    <div id="app">
        <input type="text" v-model.lazy="msg">
        <p>你输入的消息是：{{msg}}</p>
        <input type="text" v-model.number="age">
        <p>你输入的年龄是：{{age}}</p>
        <input type="text" v-model.trim.lazy="content">
        <p>你输入的内容是：{{content.length}}</p>
    </div>

    <script src="js/vue.global.js"></script>
    <script>
        var vm = Vue.createApp({
            data(){
                return {
                    msg:"Java 是一个好东西!!!",
                    content:"输入内容...",
                    age:12
                }
            }
        }).mount("#app");
    </script>

</body>
</html>